package actions;

import java.awt.event.ActionEvent;

import client_gui.ClientWindow;
import client_gui.OptionsDialog;

public class OptionsAction extends RLMAbstractAction {

	
	public OptionsAction(ClientWindow owner) {
		setActionOwner(owner);
//		putValue(ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_F8, 0));
		putValue(SMALL_ICON, loadIcon("images/options.png"));
		putValue(NAME, "Options");
		putValue(SHORT_DESCRIPTION, "Opcije");
		
		setActionItem();
	}
	
	
	public void actionPerformed(ActionEvent e) {
		OptionsDialog optionsDialog = new OptionsDialog(getActionOwner());
		optionsDialog.setVisible(true);
	}
	
}
